package com.xiaoxu.product;

import com.xiaoxu.spzx.model.entity.product.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-product")
public interface FeignProductSku {
    //url 要写完整
    @GetMapping("/api/product/getBySkuId/{skuId}")
    public ProductSku getSkuById(@PathVariable("skuId") Long skuId);
}
